Inscoper::UsbInfo¶
UsbInfo class contains all USB devices information connected to the device controller. More...
#include <UsbInfo.h>
Public Functions¶
| Name | |
|---|---|
| UsbInfo() Default constructor. |
|
| ~UsbInfo() Default destructor. |
|
| unsigned short | getVid() const Get the current VID. |
| void | setVid(unsigned short vid) Set the current VID. |
| unsigned short | getPid() const Get the current PID. |
| void | setPid(unsigned short pid) Set the current PID. |
| const std::string | getManufacturer() const Get the current manufacturer. |
| void | setManufacturer(const std::string manufacturer) Set the current manufacturer. |
| const std::string | getProduct() const Get the current product. |
| void | setProduct(const std::string product) Set the current product. |
| const std::string | getSerialNumber() const Get the current serial number. |
| void | setSerialNumber(const std::string serialNumber) Set the current serial number. |
| unsigned char | getNumInterface() const Get the current interface number. |
| void | setNumInterface(unsigned char numInterface) Set the current interface number. |
| const std::string | getAssociateDriver() const Get the current associated driver. |
| void | setAssociateDriver(const std::string associateDriver) Set the current associated driver. |
| unsigned char | getHub() const Get the current hub number. |
| void | setHub(unsigned char hub) Set the current hub number. |
| unsigned char | getPort() const Get the current port number. |
| void | setPort(unsigned char port) Set the current port number. |
Detailed Description¶
UsbInfo class contains all USB devices information connected to the device controller.
This class stores detailed information about a USB device, including its identification (VID/PID), description (Manufacturer/Product), and location (Hub/Port).
Public Functions Documentation¶
function UsbInfo¶
Default constructor.
Initializes a new instance of the UsbInfo class.
function ~UsbInfo¶
Default destructor.
function getVid¶
Get the current VID.
Return: The current VID
Retrieves the Vendor ID of the USB device.
function setVid¶
Set the current VID.
Parameters:
- vid : The current VID
Sets the Vendor ID of the USB device.
function getPid¶
Get the current PID.
Return: The current PID
Retrieves the Product ID of the USB device.
function setPid¶
Set the current PID.
Parameters:
- pid : The current PID
Sets the Product ID of the USB device.
function getManufacturer¶
Get the current manufacturer.
Return: The current manufacturer
Retrieves the manufacturer string of the USB device.
function setManufacturer¶
Set the current manufacturer.
Parameters:
- manufacturer : The current manufacturer
Sets the manufacturer string of the USB device.
function getProduct¶
Get the current product.
Return: The current product
Retrieves the product string of the USB device.
function setProduct¶
Set the current product.
Parameters:
- product : The current product
Sets the product string of the USB device.
function getSerialNumber¶
Get the current serial number.
Return: The current serial number
Retrieves the serial number of the USB device.
function setSerialNumber¶
Set the current serial number.
Parameters:
- serialNumber : The current serial number
Sets the serial number of the USB device.
function getNumInterface¶
Get the current interface number.
Return: The current interface number
Retrieves the interface number of the USB device.
function setNumInterface¶
Set the current interface number.
Parameters:
- numInterface : The current interface number
Sets the interface number of the USB device.
function getAssociateDriver¶
Get the current associated driver.
Return: The current associated driver
Retrieves the name of the driver associated with this USB device.
function setAssociateDriver¶
Set the current associated driver.
Parameters:
- associateDriver : The current associated driver
Sets the name of the driver associated with this USB device.
function getHub¶
Get the current hub number.
Return: The current hub number
Retrieves the USB hub number where the device is connected.
function setHub¶
Set the current hub number.
Parameters:
- hub : The current hub number
Sets the USB hub number where the device is connected.
function getPort¶
Get the current port number.
Return: The current port number
Retrieves the port number on the hub where the device is connected.
function setPort¶
Set the current port number.
Parameters:
- port : The current port number
Sets the port number on the hub where the device is connected.
Updated on 2026-04-02 at 10:55:36 +0200